#ifndef ASCONF_H
#define ASCONF_H


#ifdef HAVE_CONFIG_H
#include <config.h>
#endif


#include "globals.h"
#include "adaptation.h"

int asconf_get_address_from_chunk(SCTP_asconf_chunk *, union sockunion *);
    
int asconf_init(void);

void *asconf_new(unsigned long, unsigned long);
int asconf_delete(void *);
void asconf_stop_timer(void);

int asconf_recv_chunk(unsigned char *, unsigned short, unsigned short *, unsigned short *, union sockunion *, short *, short);
int asconf_recv_ack_chunk(unsigned char *, unsigned short, unsigned short *, unsigned short *, int);

int asconf_add_ip_address(union sockunion *);
int asconf_delete_ip_address(union sockunion *);
int asconf_set_primary_ip_address(union sockunion *);

int asconf_send_chunk(void);
#endif
